package com.lotterymanage.web.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 首页.
 * @author lxz
 * @date Apr 19, 2010
 */
@Controller()
@RequestMapping("/index.do")
public class IndexController extends BaseController {

    private static final Logger LOG = Logger.getLogger(IndexController.class);

    /**
     * 首页.
     * @return null
     */
    @RequestMapping(method = RequestMethod.GET)
    public String index() {
        LOG.info("成功登录首页");
        return "index";
    }

    /**
     * top.
     * @return null
     */
    @RequestMapping(params = "method=top")
    public String top() {
        LOG.info("成功登录top页");
        return "top";
    }
}
